package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * blog对象 blog
 * 
 * @author mz
 * @date 2024-07-23
 */
public class Blog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博文id */
    private Long blogId;

    /** aaa */
    @Excel(name = "aaa")
    private String blogTitle;

    /** aaa */
    @Excel(name = "aaa")
    private String blogDesc;

    /** 博文内容 */
    @Excel(name = "博文内容")
    private String blogContent;

    /** FK用户id */
    @Excel(name = "FK用户id")
    private Long userId;

    /** 1:草稿，2：审核中，3审核通过（）4：审核未通过 */
    @Excel(name = "1:草稿，2：审核中，3审核通过", readConverterExp = "1:草稿，2：审核中，3审核通过（）4：审核未通过")
    private String blogStatus;

    /** blog_status=4时原因 */
    @Excel(name = "blog_status=4时原因")
    private String blogRetryReason;

    /** FK专栏id */
    @Excel(name = "FK专栏id")
    private Long colId;

    public void setBlogId(Long blogId) 
    {
        this.blogId = blogId;
    }

    public Long getBlogId() 
    {
        return blogId;
    }
    public void setBlogTitle(String blogTitle) 
    {
        this.blogTitle = blogTitle;
    }

    public String getBlogTitle() 
    {
        return blogTitle;
    }
    public void setBlogDesc(String blogDesc) 
    {
        this.blogDesc = blogDesc;
    }

    public String getBlogDesc() 
    {
        return blogDesc;
    }
    public void setBlogContent(String blogContent) 
    {
        this.blogContent = blogContent;
    }

    public String getBlogContent() 
    {
        return blogContent;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBlogStatus(String blogStatus) 
    {
        this.blogStatus = blogStatus;
    }

    public String getBlogStatus() 
    {
        return blogStatus;
    }
    public void setBlogRetryReason(String blogRetryReason) 
    {
        this.blogRetryReason = blogRetryReason;
    }

    public String getBlogRetryReason() 
    {
        return blogRetryReason;
    }
    public void setColId(Long colId) 
    {
        this.colId = colId;
    }

    public Long getColId() 
    {
        return colId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("blogId", getBlogId())
            .append("blogTitle", getBlogTitle())
            .append("blogDesc", getBlogDesc())
            .append("blogContent", getBlogContent())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("blogStatus", getBlogStatus())
            .append("blogRetryReason", getBlogRetryReason())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("colId", getColId())
            .toString();
    }
    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
